@extends('admin.public.father')

@section('content')
    <div class="col-sm-6">
        <ul class="nav">
            <li class="nav-item">
                <a class="nav-link active" href="{{route("user.index")}}">用户列表</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{route('user.create')}}">添加用户</a>
            </li>
        </ul>
        <table class="table">
            <thead>
            <tr>
                <th>账号</th>
                <th>邮箱</th>
                <th>密码</th>
                <th width="150">操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($sliders as $v)
                <tr>
                    <td scope="row">{{$v['name']}}</td>
                    <td>
                       {{$v["email"]}}
                    <td>
                        {{$v["password"]}}}
                    </td>
                    <td>
                        <div class="btn-group" role="group" aria-label="Basic example">
                            <a href="" class="btn btn-info">编辑</a>
                            <form action="{{route("user.destroy",$v)}}" method="post">
                                @csrf
                                @method("DELETE")
                            <button class="btn btn-danger">删除</button>
                            </form>
                        </div>
                    </td>
                </tr>
            @endforeach

            </tbody>
        </table>
    </div>

@endsection